<?php
// +----------------------------------------------------------------------
// | NavApi.
// +----------------------------------------------------------------------
// | Copyright (c) 2016 http://www.suckseed.cn, All rights reserved.
// +----------------------------------------------------------------------
// | Author: wjf <184521508@qq.com> 2017-07-01
// +----------------------------------------------------------------------

namespace app\admin\api;

use app\admin\model\Nav;

class NavApi
{
    //分类列表 用于模板设计
    public function index($param = [])
    {
        $navModel = new Nav();
        $where = [];
        if (!empty($param['keyword'])) {
            $where['name'] = ['like', "%{$param['keyword']}%"];
        }

        return $navModel->where($where)->select();
    }


}